package day12;
//此类是用于验证包装类的使用
public class TestNumber {
    static Integer i0;
    static Double i1;

    public static void main(String[] args) {
        System.out.println(i0);//包装类的默认值都是null
        System.out.println(i1);   //包装类的默认值都是null

        Integer i1 = 5;
        Integer i11 = 5;
        System.out.println(i1 == i11);
        System.out.println(i1.equals(i11));

        Integer i2 = Integer.valueOf(127);
        Integer i3 = Integer.valueOf(127);
        System.out.println(i1.equals(i2));
        System.out.println(i2.equals(i3));

        Integer i4 = 88;
        System.out.println(i4.equals(i3));

    }
}
